<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
    <link href="/Public/Admin/css/new_plan.css" rel="stylesheet" />
    <script src="/Public/static/layer/layer.js"></script>
    <!--文件上传-->
    <script type="text/javascript" src="/Public/Cropper/js/ajaxfileupload.js" ></script>
    <style>
        .notify{
            width: 80%;
            margin:1rem auto;
        }
        .notifyHeader{
            text-decoration: underline;
        }
        .notify_title{
            border: 0px solid red;
            height:45px;
            text-align: center;
            margin-top: 22px;
            margin-bottom: 65px;
            font-size: 30px;
        }
        .notify_content{
            color: #515151;
            font-size:21px;
            FONT-FAMILY: 仿宋;
            line-height: 215%;
        }
        .notify_keyword{
            color: #1781d0;
            text-decoration: underline;
            margin-top: 20px;
        }
        .keyword{display: none;margin-top: 20px;}
        .attach{margin-top: 10px;}
        .attach_item{color: #1781d0;margin-top: 10px;}
        .notify_edit{margin-top:20px;}
        .views{margin:20px auto;text-align: center;}
        .view{
            display: inline-block;
            width: 75px;
            height: 30px;
            line-height: 30px;
            background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e2e2e2), color-stop(100%, #b1b1b1));
            border-radius: 6px;
            font-size: 15px;
            margin-right: 10px;
        }
            
    </style>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <div class="layui-inline">
                        <if condition="$is_manage eq ''">
                            <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Personal/notice',array('is_read'=>$_GET['is_read'],'from_id'=>$_GET['from_id'],'type_id'=>$_GET['type_id'],'subject'=>$_GET['subject'],'send_time'=>$_GET['send_time'],'content'=>$_GET['content']))}">返回</a>
                        <elseif condition='$is_manage eq "approve"' />
                            <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Erp/noticeApprove',array('type_id'=>$_GET['type_id']))}">返回</a>
                        <elseif condition='$is_manage eq "manage"' />
                            <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Erp/noticeManage',array('type_id'=>$_GET['type_id']))}">返回</a>
                        </if>
                    </div>
                    <div class="layui-inline" style="float: right;">
                        <span>
                            发布部门：<font class="notifyHeader">{$data.from_dept|getDeptName}</font>&nbsp;&nbsp;
                            发布人：<font class="notifyHeader">{$data.from_id|getChineseName}</font>&nbsp;&nbsp;
                            发布于：<font class="notifyHeader">{$data.send_time}</font>&nbsp;&nbsp;
                            审批人：<font class="notifyHeader">{$data.auditer|getChineseName}</font>
                        </span>
                    </div>
                </blockquote>
                <div class="layui-tab-content larry-personal-body clearfix mylog-info-box tabRedefine layui-tab-brief">
                    <div class="layui-tab-item layui-field-box layui-show absence">
                        <div class="notify">
                            <div class="notify_title">【{$data.type_id|getNoticeTypeName}】{$data.subject}</div>
                            <div class="notify_content">{$data.content|htmlspecialchars_decode}</div>
                            <if condition="$data.keyword neq ''">
                                <div class="notify_keyword">显示本文关键词</div>
                                <div class="keyword">本文关键词：<font style="color: #1781d0;">{$data.keyword}</font></div>
                            </if>
                            <if condition="$data.uploads neq ''">
                                <div class="attach">
                                    <p>附件文件：</p>
                                    <foreach name="data.uploads" item="file" key="key">
                                        <a href="{$data['uploads_url'][$key]}" download="{$file}" style="color: #5077AA;"><p class="attach_item">{$file}</p></a>
                                    </foreach>
                                </div>
                            </if>
                            <if condition="$data.last_editor neq ''">
                                <div class="notify_edit"><font style="text-decoration: underline;margin-right: 10px;">{$data.last_editor|getChineseName}</font>最后编辑于：{$data.last_edit_time}</div>
                            </if>
                            <if condition="$is_manage eq ''">
                                <div class='views'>
                                    <a class='view pointer' data-url="{:U('readNotify',array('notify_id'=>$data['notify_id'],'status'=>'prev'))}">上一篇</a>
                                    <a class='view pointer' data-url="{:U('readNotify',array('notify_id'=>$data['notify_id'],'status'=>'next'))}">下一篇</a>
                                </div>
                            </if>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/personal.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/common.js" ></script>
    <script type="text/javascript">
        $(initPersonal())
    </script>    
    
</block>
